/** Created by CUIJA on 05-19-2017.*/


module.exports = function ($stateProvider) {
  $stateProvider
    .state({
      name: 'login',
      url: '/login',
      template: require('../layouts/login.html'),
      controller:'authController',
      controllerAs: 'vm'
    }).state({
          name: 'default',
          url: '',
          template: require('../layouts/login.html'),
          controller:'authController',
          controllerAs: 'vm'
      }).state({
      name: 'regist',
      url: '/regist',
      template: require('../layouts/register.html'),
      controller:'authController',
      controllerAs: 'vm'
    }).state("otherwise", { url : '/login'})
};